package com.ruoyi.baoming.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.baoming.mapper.ExamCandidateMapper;
import com.ruoyi.baoming.domain.ExamCandidate;
import com.ruoyi.baoming.service.IExamCandidateService;

/**
 * 考生信息Service业务层处理
 * 
 * @author xiaosong
 * @date 2024-11-20
 */
@Service
public class ExamCandidateServiceImpl implements IExamCandidateService 
{
    @Autowired
    private ExamCandidateMapper examCandidateMapper;

    /**
     * 查询考生信息
     * 
     * @param id 考生信息主键
     * @return 考生信息
     */
    @Override
    public ExamCandidate selectExamCandidateById(Long id)
    {
        return examCandidateMapper.selectExamCandidateById(id);
    }

    /**
     * 查询考生信息列表
     * 
     * @param examCandidate 考生信息
     * @return 考生信息
     */
    @Override
    public List<ExamCandidate> selectExamCandidateList(ExamCandidate examCandidate)
    {
        return examCandidateMapper.selectExamCandidateList(examCandidate);
    }

    /**
     * 新增考生信息
     * 
     * @param examCandidate 考生信息
     * @return 结果
     */
    @Override
    public int insertExamCandidate(ExamCandidate examCandidate)
    {
        return examCandidateMapper.insertExamCandidate(examCandidate);
    }

    /**
     * 修改考生信息
     * 
     * @param examCandidate 考生信息
     * @return 结果
     */
    @Override
    public int updateExamCandidate(ExamCandidate examCandidate)
    {
        return examCandidateMapper.updateExamCandidate(examCandidate);
    }

    /**
     * 批量删除考生信息
     * 
     * @param ids 需要删除的考生信息主键
     * @return 结果
     */
    @Override
    public int deleteExamCandidateByIds(Long[] ids)
    {
        return examCandidateMapper.deleteExamCandidateByIds(ids);
    }

    /**
     * 删除考生信息信息
     * 
     * @param id 考生信息主键
     * @return 结果
     */
    @Override
    public int deleteExamCandidateById(Long id)
    {
        return examCandidateMapper.deleteExamCandidateById(id);
    }
}
